package cn.fl.pbl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.cmm.base.framework.exception.BaseException;
import cn.fl.pbl.service.IPblBillDService;
import cn.fl.pbl.transform.PblBillDVOTransform;
import cn.fl.pbl.vo.PblBillDVO;
import fl.pbl.facade.pbl.api.IPblBillMApiService;
import fl.pbl.facade.pbl.condition.PblBillDQC;
import fl.pbl.facade.pbl.dto.PblBillDDTO;
/**
 * @Description: 垫款贷账单详情 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
@Service
public class PblBillDServiceImpl implements IPblBillDService {

	@Autowired
	private IPblBillMApiService pblBillMApiService;
	
	@Override
	public List<PblBillDVO> searchList(PblBillDQC condition)
			throws BaseException {
		if(condition==null)condition = new PblBillDQC();
		List<PblBillDDTO> dtoList = this.pblBillMApiService.searchPblBillDList(condition);
		//TODO 处理字典相关
		return PblBillDVOTransform.toVOList(dtoList);
	}

}
